import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.anon.service.impl.UserService2;

/**
 * @author 徒有琴
 */
public class AopTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("spring-aop.xml");
        UserService2 userService=applicationContext.getBean(UserService2.class);
        System.out.println(userService.getStr());
     //   userService.sayHello();
    }
}
